import { http } from "@/utils/http/axios";
/**
 * 查询接口阐述
 */
export function getRedpacketPlayerPageList(params) {
    return http.request({
        url: '/system/red/player/list',
        method: 'POST',
        params
    });
}
/**
 * 修改状态
 * @param params
 */
export function updateRedpacket(params) {
    return http.request({
        url: '/system/red/player/update',
        method: 'POST',
        params
    });
}
/**
 * 获取红包配置
 */
export function getRedpackConfig() {
  return http.request({
    url: '/system/red/config',
    method: 'GET',
  });
}

/**
 * 修改红包配置
 * @param params
 */
export function updateRedpackConfig(params) {
  return http.request({
    url: '/system/red/config/update',
    method: 'POST',
    params,
  });
}

/**
 * 主播福利列表
 * @param params
 */
 export function getAnchorHbList(params) {
  return http.request({
    url: '/system/anchorRedArrs',
    method: 'POST',
    params,
  });
}
/**
 * 主播福利领取明细
 * @param params
 */
 export function getAnchorHbDetail(params) {
  return http.request({
    url: '/system/anchorRedDetail',
    method: 'POST',
    params,
  });
}
/**
 * 开启所有等级红包和高级红包
 * @param params
 */
export function openReciveRedPack(params) {
  return http.request({
      url: '/system/red/player/openReciveRedPack',
      method: 'POST',
      params
  });
}
